package com.sinosoft.vaccinetoai.security.model;

import com.sinosoft.vaccinetoai.common.enmu.user.UserFlagEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 自定义认证对象
 * @author xzh
 * @date 2023-04-09 19:07
 * @since 1.0.0
 */
@Getter
@Setter
@ToString
public class CustomPrincipal implements Serializable {

    private static final long serialVersionUID = -7272711064663511906L;

    //唯一标识
    private Long id;

    // 登录账户
    private String loginName;


    //原始SSO登录token 用于识别第三方到底有没有变化
    private String orgSSO;

    // 用户类型；1-管理用户 2-普通用户
    private Integer type;

    // 用户ID
    private Long userId;

}
